package com.ys.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;


import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 区块链block扫描记录表
 * </p>
 *
 * @author zpf
 * @since 2018-03-27
 */
@Data
@Accessors(chain = true)
@TableName("wallet_scan_block")
public class WalletScanBlock extends Model<WalletScanBlock> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 资产名称
     */
    @TableField("currencyName")
    private String currencyName;
    private Integer currency;
    @TableField("currencyChainType")
    private Integer currencyChainType;
    /**
     * 智能合约地址
     */
    @TableField("contractAddress")
    private String contractAddress;
    /**
     * 上次扫描的块号
     */
    @TableField("blockNum")
    private Integer blockNum;
    /**
     * 上次扫描的块的hash
     */
    @TableField("blockHash")
    private String blockHash;
    /**
     * 上次扫描快的交易索引
     */
    @TableField("blockIndex")
    private Integer blockIndex;
    /**
     * 块的交易数量
     */
    @TableField("blockTranction")
    private Integer blockTranction;
    /**
     * -1：暂停扫描
0： 扫描未开始
1： 扫描已开始
2:   扫描已暂停
     */
    private Integer status;
    @TableField("jsonData")
    private String jsonData;
    @TableField("inputDate")
    private Date inputDate;
    @TableField("editDate")
    private Date editDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
